home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / mmedia / system / ap2 / scripts / x8____i1.p2s < prev    next >
Encoding:
Text File  |  1994-01-04  |  876 b   |  33 lines

  1. # DESCRIPTION:
  2. # --------------------------------------------------------------
  3. #
  4. # Open CDXA, Tests Lockeject, Close
  5. #
  6. # --------------------------------------------------------------
  7. @BREAK              A CDXA WILL NEED TO BE IN THE DEFAULT CD-ROM DRIVE
  8.  
  9. open cdxa alias cdxa_1 notify
  10. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_OPEN #1
  11. @WAIT_NOTIFY 1 30000
  12.  
  13. acquire cdxa_1
  14. @WAIT_PASSDEVICE cdxa_1 10000
  15.  
  16. set cdxa_1 door locked notify
  17. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_SET #2
  18. @WAIT_NOTIFY 2 30000
  19.  
  20. pause cdxa_1
  21. @CHECK The manual eject button has been locked.  Attempt to Eject the CDXA.  Did the eject fail?
  22.  
  23. status cdxa_1 media present wait
  24. =TRUE
  25.  
  26. set cdxa_1 door unlocked notify
  27. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_SET #3
  28. @WAIT_NOTIFY 3 30000
  29.  
  30. close cdxa_1 notify
  31. +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_CLOSE #4
  32. @WAIT_NOTIFY 4 30000
  33.